<template>
	<view>
		这是page1
		<button @click="onClick">按钮</button>
	</view>
</template>

<script setup>
	
	import {onLoad} from '@dcloudio/uni-app';
	onLoad((e)=>{
		console.log(e)
	})
	uni.setStorageSync("name","sd");
	let name = uni.getStorageSync("name");
	const res = uni.getStorageInfoSync();
	uni.removeStorageSync("name");
	uni.clearStorage()
	
	let arrs = ['哈哈','嘻嘻','略略','力量']
	const onClick = () => {
		uni.showActionSheet({
			title:'请选择',
			itemList:arrs,
			itemColor:'#4cd964',
			success: (res) => {
				console.log(arrs[res.tapIndex])
			}
		})
	}
</script>

<style>

</style>